/**
 * Created by Administrator on 2017/9/20.
 */
angular.module('service.saleStatistics', [
        "ngResource",
    ])
    .service('SaleService', SaleService);
SaleService.$inject = ['$resource'];
function SaleService($resource) {

    this.getBookInfo = function (shopid, starttime, endtime, success, error) {
        var resource = $resource(deviceurl + "shotabres/bytimes/:shopid");
        return resource.query({shopid: shopid, strstarttime: starttime, strendtime: endtime}, success, error);
    };

    // 上座量
    this.getUpInfo = function (shopid, starttime, endtime, success, error) {
        var resource = $resource(deviceurl + "shonum/shonumsum/:shopid");
        return resource.query({shopid: shopid, strstarttime: starttime, strendtime: endtime}, success, error);
    };

    this.callInfo = function (shopid, starttime, endtime, success, error) {
        var resource = $resource(deviceurl + "tabcalsum/bytimes/:shopid");
        return resource.query({shopid: shopid, starttime: starttime, endtime: endtime}, success, error);
    }
}